FROM centos:latest
MAINTAINER "Mr_He"<hellohesir@gmail.com>
WORKDIR /home/java
COPY otp_src_19.3.tar.gz
COPY rabbitmq-server-3.7.7-1.el7.noarch.rpm
RUN \
	tar xvf otp_src_19.3.tar.gz && \
	yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel && \
	cd otp_src_19.3 && \
	./configure --prefix=/usr/erlang --without-javac && \
	make && \
	make install && \
	cd /home/java && \
	yum install rabbitmq-server-3.7.7-1.el7.noarch.rpm -y
